package homework.day01;


import java.io.File;
import java.net.URISyntaxException;

public class Test {
    public static void main(String[] args) throws URISyntaxException {
        //获取类加载路径的根目录
        File dir = new File(
                Test.class.getClassLoader().getResource(".").toURI()
        );

        String path = dir.getAbsolutePath();
        System.out.println(path);
    }
}
